package org.learn.test;

public class ArrayExercise {
    public static void main(String[] args) {
        //创建一个char类型的26个元素的数组，分别放置A-Z
        //使用for循环访问并打印出来
        char[] chars = new char[26];
        for(int i = 0; i < chars.length;i++){
            chars[i] = (char)  ('A' + i);
        }
        System.out.println("===chars数组===");
        for(int i = 0; i < chars.length;i++) {
        System.out.print(chars[i] + " ");
        }
    }
}
